import React ,{useEffect}from 'react'
// 引入
import { fn,pn } from './utils'
type Props = {}
// 函数封装
const App = (props: Props) => {
  const difference:number=10
  function dn(arr:number){
    console.log(arr);
    
  }
  dn(difference)
// 继承
class bt {
  name:string
  constructor(name:string){
    this.name = name
  }
}
class bt1 extends bt{
   num:number
   
   constructor(num:number){
     super('')
     this.num=num
     }

 }

 
 // 排序 最大差值
   useEffect(()=>{
    console.log(fn([1,6,7,9]));
    console.log(pn([2,1,4,3]));
   
   },[])
   return (
     <div>App</div>
    )
 }

export default App